import 'package:app/pages/index.dart';
import 'package:flutter/widgets.dart';
import 'package:get/get.dart';
import 'index.dart';

class RoutePages {
  static final RouteObserver<Route> observer = RouteObservers();
  static List<String> history = [];

  static List<GetPage> list = [
    // 启动图
    GetPage(
      name: RouteNames.systemSplash,
      page: () => const SplashPage(),
    ),
    // 欢迎
    GetPage(
      name: RouteNames.systemWelcome,
      page: () => const WelcomePage(),
    ),
    // 首页
    GetPage(
      name: RouteNames.systemHome,
      page: () => const HomePage(),
    ),
    // 登录
    GetPage(
      name: RouteNames.systemLogin,
      page: () => const LoginPage(),
    ),
  ];
}
